package duckandturkey.turkey;

import duckandturkey.duck.Duck;

/**
 * description:
 *
 * @author yuanmenglv on 2019/11/30
 */
public class DuckToTurkeyAdapter implements Turkey {
    private Duck duck;

    public DuckToTurkeyAdapter(Duck duck) {
        this.duck = duck;
    }

    @Override
    public void gobble() {
        duck.quack();
    }

    @Override
    public void fly() {
        duck.fly();
    }
}
